home *** CD-ROM | disk | FTP | other *** search
- <html style="height:320;width:412;dialog-resizeable:no;">
- <head>
- <title>Advanced Options</title>
- <style>
- body {font-family: verdana;font-size: 11;}
- td {font-family: verdana;font-size: 11;}
- input {font-family: verdana;font-size: 10;}
- </style>
- </head>
-
- <SCRIPT language="javascript">
- <!--
- // trimming spaces
- function trimStr(strOrig)
- {
- var i, j ;
- var strNew ;
- for (i=0; i<strOrig.length; i++)
- {
- if (strOrig.charAt(i) != ' ' && strOrig.charAt(i) != '\t' && strOrig.charAt(i) != '\r' && strOrig.charAt(i) != '\n')
- break ;
- }
- for (j=strOrig.length-1; j>i; j--)
- {
- if (strOrig.charAt(j) != ' ' && strOrig.charAt(j) != '\t' && strOrig.charAt(j) != '\r' && strOrig.charAt(j) != '\n')
- break ;
- }
- strNew = strOrig.substr(i, j - i + 1) ;
-
- return strNew ;
- }
-
- // initialize the html page at load time
- function loadBody()
- {
- //get the arguments
- var arrArgs = new Array();
- arrArgs = window.dialogArguments.split(";");
-
- // analyse the parameter and set internal parameter flag
- var bExportComment = false ;
- var bExportStyle = false ;
- var bExportScript = false ;
- for (i=0; i<arrArgs.length; i++)
- {
- var arrOneArg = new Array();
- arrOneArg = arrArgs[i].split("=");
- if (arrOneArg.length>1)
- {
- var sParmName = trimStr(arrOneArg[0].toString().toLowerCase()) ;
- var nParmValue = arrOneArg[1].valueOf() ;
-
- if (sParmName == "export.comment") bExportComment = (nParmValue != 0) ;
- if (sParmName == "export.style") bExportStyle = (nParmValue != 0) ;
- if (sParmName == "export.script") bExportScript = (nParmValue != 0) ;
- }
- }
-
- // set control status
- if (bExportComment || bExportStyle || bExportScript)
- {
- bExportComment = true;
- bExportStyle = true ;
- bExportScript = true ;
- radFullFeatured.checked = true ;
- }
- else
- {
- radContentOnly.checked = true ;
- }
-
- params_in.value = window.dialogArguments;
- params_in.disabled= true;
-
- params_out.value = GenerateParamsOut();
- params_out.disabled = true ;
-
- //set the default return value
- window.returnValue = params_out.value;
- }
-
- // triggered when OK clicked
- function okButtonClick()
- {
- //generate return value
- params_out.value = GenerateParamsOut() ;
-
- //this return value means that the OK button was clicked
- window.returnValue = params_out.value;
-
- //close the dialog
- window.close();
- return false;
- }
-
- // triggered when Cancel clicked
- function cancelButtonClick()
- {
- //this return value means that the Cancel button was clicked
- window.returnValue = 0;
-
- //close the dialog
- window.close();
- return false;
- }
-
- // generate output parameters
- function GenerateParamsOut()
- {
- //generate return value
- var sParamsOut = "" ;
-
- if (radContentOnly.checked)
- sParamsOut = "export.comment=0;export.style=0;export.script=0;export.ExcludeFiles=0x001D" ;
- else
- sParamsOut = "export.comment=1;export.style=1;export.script=1;export.ExcludeFiles=0x0000" ;
-
- return sParamsOut ;
- }
-
- function selectContentOnly()
- {
- document.all("radContentOnly").checked = true ;
- params_out.value = GenerateParamsOut() ;
- return true;
- }
-
- function selectFullFeatured()
- {
- document.all("radFullFeatured").checked = true ;
- params_out.value = GenerateParamsOut() ;
- return true;
- }
-
- function ShowToolTip(strID, visible)
- {
- return true;
- // if (visible)
- // document.all(strID).style.visibility = "visible" ;
- // else
- // document.all(strID).style.visibility = "hidden" ;
- // return true;
- }
-
- function flipImage(url)
- {
- if (window.event.srcElement.tagName == "IMG" ) {
- window.event.srcElement.src = url;
- }
- }
-
- var wndHelp = null;
- function openHelp()
- {
- closeHelp();
- wndHelp = window.open("ExportTopicParamsHelp.htm", null, "left=400,top=50,width=390,height=350,scrollbars=no,resizable=yes,toolbar=no,location=no,status=no,menubar=no,") ;
- return false;
- }
-
- function closeHelp()
- {
- try
- {
- if (wndHelp != null) wndHelp.close();
- }
- catch(e)
- {
- }
- }
-
- function keydownHandler()
- {
- switch (event.keyCode)
- {
- case 27: // ESC
- cancelButtonClick();
- event.returnValue = false ;
- break ;
-
- case 13: // ENTER
- okButtonClick();
- event.returnValue = false ;
- break ;
-
- default:
- }
- }
- //-->
- </SCRIPT>
-
- <BODY onload="loadBody()" bgcolor="THREEDFACE" TEXT="black" onunload="closeHelp()"
- onkeydown="keydownHandler()" onhelp="openHelp()">
-
- <div id="main" style="position:absolute;left:15px;top:15px;">
- <table align="left" width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td colspan=2 align="middle">
- <table style="color:black">
- <tr heigh="40" valign="bottom">
- <td colspan=2 align="middle"><br><b>Advanced Options for Topic Export to DocBook</b></td>
- </tr>
- <tr heigh="40" valign="bottom">
- <td colspan=2 align="middle"><br><img border="0" src="docbook.gif"></td>
- </tr>
- <tr height="120">
- <td width="10" align="middle"></td>
- <td >
- <p>
- How do you want to export the topics to DocBook?<br><br>
- <span onClick="selectContentOnly()" onMouseOver="ShowToolTip('tip1',true)" onMouseOut="ShowToolTip('tip1',false)">
- <INPUT accesskey="c" type=radio id="radContentOnly" name="selectoption" checked>
- <u>C</u>ontent Only</span><br>
- <span onClick="selectFullFeatured()" onMouseOver="ShowToolTip('tip2',true)" onMouseOut="ShowToolTip('tip2',false)">
- <INPUT accesskey="f" type=radio id="radFullFeatured" name="selectoption">
- <u>F</u>ull-featured Export</span>
- </p>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr height="40" valign="top">
- <td colspan=2 align="middle">
- <img border="0" src="line.jpg">
- <!--hr style="color:black;height:1px"-->
- <br><br>
- <a tabindex="1" href="" onclick="return okButtonClick();"><img border="0" src="ok.jpg" onmouseover="flipImage('ok_highlight.jpg')" onmouseout="flipImage('ok.jpg')"></a>
- <a tabindex="2" href="" onclick="return cancelButtonClick();"><img border="0" src="cancel.jpg" onmouseover="flipImage('cancel_highlight.jpg')" onmouseout="flipImage('cancel.jpg')"></a>
- <a tabindex="3" href="" onclick="return openHelp();"><img border="0" src="help.jpg" onmouseover="flipImage('help_highlight.jpg')" onmouseout="flipImage('help.jpg')"></a>
- </td>
- </tr>
- </table>
- </div>
-
- <div style="visibility:hidden">
- <input type="text" name="params_in" style="border:0px;bgcolor:#0060CD;color:white;position:absolute;left:160px;width: 200px"><br><br>
- <input type="text" name="params_out" style="border:0px;bgcolor:#0060CD;color:white;position:absolute;left:160px; width: 200px">
- </div>
-
- <div id="tip1" style="visibility:hidden;position:absolute;left:250px;top:8px;width:150px;height:150px;">
- <table cellpadding=0 cellspacing=0 background="box.gif"
- style="border:0;padding-left:6px;padding-right:8px;padding-top:8px;padding-bottom:8px;width:150px;height:150px;color:#0060CD">
- <tr height=130 valign="top">
- <td>
- <b>Content Only</b><br><br>
- Only meaningful contents will be exported. It includes
- inline/block text, image, normal links, tables. All dhtml effects, scripts would be dropped.
- </td>
- </tr>
- </table>
- </div>
-
- <div id="tip2" style="visibility:hidden;position:absolute;left:250px;top:28px;width:150px;height:150px;">
- <table cellpadding=0 cellspacing=0 background="box.gif"
- style="border:0;padding-left:6px;padding-right:8px;padding-top:8px;padding-bottom:8px;width:150px;height:150px;color:#0060CD;">
- <tr height=130 valign="top">
- <td>
- <b>Full-featured Export</b><br><br>
- All topic contents will be kept well even styles and dhtml effects when you export with this option. It
- makes it possible to import it back.
- </td>
- </tr>
- </table>
- </div>
-
- </body>
- </html>
-